package SwingView;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Graphics;

import javax.swing.*;

public class CmsUtilityPanel extends JPanel{

	public CmsUtilityPanel(){
		setOpaque(false);
		setForeground(new Color(25,25,25));
		setBorder(BorderFactory.createEmptyBorder(3, 10, 8, 10));
		setLayout(new FlowLayout(FlowLayout.CENTER));
		setPreferredSize(new Dimension(200,400));
	}
	
	
	//---------------------------------------------------------
	//METHOD: paintComponent
	// - Paint the white rounded rectangle on the background
	//---------------------------------------------------------	
	@Override
	protected void paintComponent(Graphics g){
		super.paintComponent(g);
		g.fillRoundRect(0, 0, this.getWidth() - 8, this.getHeight() - 8, 10, 10);
	}
}
